package com.test;

import java.text.ParseException;
import java.text.SimpleDateFormat;

/**
 * Created by Administrator on 2017/4/5.
 */
public class StaticDemo {

    static {
        System.out.println("hello static...");
    }

    public static void main(String[] args) throws ParseException {
        String str = "2017-05-10 14:01:30";
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm");
        System.out.println(sdf.parse(str));
    }

}
